/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.hazardsource.service.api;

import com.koron.common.domain.DataBean;
import com.koron.hazardsource.bean.DictIndication;
import com.koron.hazardsource.domain.IndicationType;
import org.swan.bean.MessageBean;

import java.util.List;

public interface IndicationTypeService {
    /**
     * 保存指标类型
     * @param bean
     * @return
     */
    MessageBean<Integer> save(IndicationType bean);

    /**
     * 删除指标类型
     * @param idList
     * @return
     */
    MessageBean<Integer> batchDelete(List<String> idList);

    /**
     * 根据主键查询指标类型详情
     * @param id
     * @return
     */
    MessageBean<IndicationType> queryOne(String id);

    /**
     * 查询列表，可分页
     * @param start
     * @param rows
     * @return
     */
    MessageBean<DataBean<IndicationType>> query(Integer start,Integer rows);


    /**
     * find the one whose key is given
     * @param typeKey
     * @return
     */
    IndicationType fetchForKey(String typeKey);

    List<DictIndication> combineDictIndication() throws Exception;

}
